﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WebChatClient.Controllers
{
    public class OpenIDAccCreationFactory
    {
        public static IOpenIDAccountCreationStrategy GetCreationStrategy(string provider)
        {
            switch (provider)
            {
                case "https://www.google.com/accounts/o8/ud":
                    return new GoogleAccountCreation();
                case "https://open.login.yahooapis.com/openid/op/auth":
                    return new YahooAccountCreation();
                default:
                    return null;
            }
        }
    }
}